package Text_13;

public class ArrText {

	public static void main(String[] args) {
		int temp = 0; 
		int arr[] = new int[] {1,2,3,4,5};
		int arr2[] = new int[arr.length];
		for(int i=0;i<arr.length;i++) {
			temp =arr[i];
			arr2[arr.length-i-1] =temp; 
		}
		for(int i=0;i<arr.length;i++) {
			System.out.print(arr2[i]+" "); 
		}
	}
}
